﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class PlayerCardPage : EventManager
{
    public Text CardTypeTex;
    public GameObject playerStateAniObj;

    public override void InformationSetting()
    {

    }

    public void SetCardType(string cardType)
    {
        Debug.Log(cardType);
        SetText(CardTypeTex, cardType);
    }

    public void PlayPlayerStateAni(string str)         //弃牌 跟注 聚锅
    {
        if (string.IsNullOrEmpty(str))
        {
            playerStateAniObj.gameObject.SetActive(false);
        }
        else
        {
            playerStateAniObj.gameObject.SetActive(true);
            playerStateAniObj.GetComponent<PlayerStateAniPage>().PlayPlayerStateAni(str);
        }
    }

}
